package com.ruoyi.system.service.impl;

import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.ruoyi.common.core.domain.entity.SysDept;
import com.ruoyi.system.domain.dto.EvaluationStageDTO;
import com.ruoyi.system.enums.AssessmentStatus;
import com.ruoyi.system.service.ISysDeptService;
import com.ruoyi.system.service.ISysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ReportComprehensiveMapper;
import com.ruoyi.system.domain.ReportComprehensive;
import com.ruoyi.system.service.IReportComprehensiveService;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author ruoyi
 * @date 2025-04-29
 */
@Service
public class ReportComprehensiveServiceImpl implements IReportComprehensiveService {
    @Autowired
    private ReportComprehensiveMapper reportComprehensiveMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public ReportComprehensive selectReportComprehensiveById(Long id) {
        return reportComprehensiveMapper.selectReportComprehensiveById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param reportComprehensive 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<ReportComprehensive> selectReportComprehensiveList(ReportComprehensive reportComprehensive) {
        return reportComprehensiveMapper.selectReportComprehensiveList(reportComprehensive);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param reportComprehensive 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertReportComprehensive(ReportComprehensive reportComprehensive) {
        return reportComprehensiveMapper.insertReportComprehensive(reportComprehensive);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param reportComprehensive 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateReportComprehensive(ReportComprehensive reportComprehensive) {
        return reportComprehensiveMapper.updateReportComprehensive(reportComprehensive);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteReportComprehensiveByIds(Long[] ids) {
        return reportComprehensiveMapper.deleteReportComprehensiveByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteReportComprehensiveById(Long id) {
        return reportComprehensiveMapper.deleteReportComprehensiveById(id);
    }

    @Override
    public int insertReportComprehensiveList(List<ReportComprehensive> list) {
        return reportComprehensiveMapper.insertReportComprehensiveList(list);
    }

    @Override
    public List<Map<String, Object>> countChartByUser(List<String> statusList, List<Long> deptIds, Long taskId) {
        return reportComprehensiveMapper.countChartByUser(statusList, deptIds, taskId);
    }
}
